3.139 \(\int \frac{b x^2+c x^4}{x^3} \, dx\)

Optimal. Leaf size=13 \[ b \log (x)+\frac{c x^2}{2} \]

[Out]

(c*x^2)/2 + b*Log[x]

________________________________________________________________________________________

Rubi [A]  time = 0.0053259, antiderivative size = 13, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {14} \[ b \log (x)+\frac{c x^2}{2} \]

Antiderivative was successfully verified.

[In]

Int[(b*x^2 + c*x^4)/x^3,x]

[Out]

(c*x^2)/2 + b*Log[x]

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rubi steps

\begin{align*} \int \frac{b x^2+c x^4}{x^3} \, dx &=\int \left (\frac{b}{x}+c x\right ) \, dx\\ &=\frac{c x^2}{2}+b \log (x)\\ \end{align*}

Mathematica [A]  time = 0.0011614, size = 13, normalized size = 1. \[ b \log (x)+\frac{c x^2}{2} \]

Antiderivative was successfully verified.

[In]

Integrate[(b*x^2 + c*x^4)/x^3,x]

[Out]

(c*x^2)/2 + b*Log[x]

________________________________________________________________________________________

Maple [A]  time = 0.043, size = 12, normalized size = 0.9 \begin{align*}{\frac{c{x}^{2}}{2}}+b\ln \left ( x \right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^4+b*x^2)/x^3,x)

[Out]

1/2*c*x^2+b*ln(x)

________________________________________________________________________________________

Maxima [A]  time = 0.97259, size = 19, normalized size = 1.46 \begin{align*} \frac{1}{2} \, c x^{2} + \frac{1}{2} \, b \log \left (x^{2}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^4+b*x^2)/x^3,x, algorithm="maxima")

[Out]

1/2*c*x^2 + 1/2*b*log(x^2)

________________________________________________________________________________________

Fricas [A]  time = 1.27428, size = 30, normalized size = 2.31 \begin{align*} \frac{1}{2} \, c x^{2} + b \log \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^4+b*x^2)/x^3,x, algorithm="fricas")

[Out]

1/2*c*x^2 + b*log(x)

________________________________________________________________________________________

Sympy [A]  time = 0.088606, size = 10, normalized size = 0.77 \begin{align*} b \log{\left (x \right )} + \frac{c x^{2}}{2} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**4+b*x**2)/x**3,x)

[Out]

b*log(x) + c*x**2/2

________________________________________________________________________________________

Giac [A]  time = 1.15788, size = 19, normalized size = 1.46 \begin{align*} \frac{1}{2} \, c x^{2} + \frac{1}{2} \, b \log \left (x^{2}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^4+b*x^2)/x^3,x, algorithm="giac")

[Out]

1/2*c*x^2 + 1/2*b*log(x^2)